package com.xuetang9.domain;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "way_defect")
public class WayDefect implements Serializable {
    /**
     * 任务编号
     */
    @Column(name = "task_id")
    private String taskId;

    /**
     * 缺陷编号
     */
    @Column(name = "defect_id")
    private Integer defectId;

    /**
     * 路线编号
     */
    @Column(name = "way_id")
    private String wayId;

    /**
     * 路线缺陷状态
     */
    private String status;

    /**
     * 缺陷状态类型
     */
    @Column(name = "defect_status")
    private String defectStatus;

    /**
     * 缺陷时间
     */
    @Column(name = "status_time")
    private Date statusTime;

    private static final long serialVersionUID = 1L;

    /**
     * 获取任务编号
     *
     * @return task_id - 任务编号
     */
    public String getTaskId() {
        return taskId;
    }

    /**
     * 设置任务编号
     *
     * @param taskId 任务编号
     */
    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    /**
     * 获取缺陷编号
     *
     * @return defect_id - 缺陷编号
     */
    public Integer getDefectId() {
        return defectId;
    }

    /**
     * 设置缺陷编号
     *
     * @param defectId 缺陷编号
     */
    public void setDefectId(Integer defectId) {
        this.defectId = defectId;
    }

    /**
     * 获取路线编号
     *
     * @return way_id - 路线编号
     */
    public String getWayId() {
        return wayId;
    }

    /**
     * 设置路线编号
     *
     * @param wayId 路线编号
     */
    public void setWayId(String wayId) {
        this.wayId = wayId;
    }

    /**
     * 获取路线缺陷状态
     *
     * @return status - 路线缺陷状态
     */
    public String getStatus() {
        return status;
    }

    /**
     * 设置路线缺陷状态
     *
     * @param status 路线缺陷状态
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 获取缺陷状态类型
     *
     * @return defect_status - 缺陷状态类型
     */
    public String getDefectStatus() {
        return defectStatus;
    }

    /**
     * 设置缺陷状态类型
     *
     * @param defectStatus 缺陷状态类型
     */
    public void setDefectStatus(String defectStatus) {
        this.defectStatus = defectStatus;
    }

    /**
     * 获取缺陷时间
     *
     * @return status_time - 缺陷时间
     */
    public Date getStatusTime() {
        return statusTime;
    }

    /**
     * 设置缺陷时间
     *
     * @param statusTime 缺陷时间
     */
    public void setStatusTime(Date statusTime) {
        this.statusTime = statusTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", taskId=").append(taskId);
        sb.append(", defectId=").append(defectId);
        sb.append(", wayId=").append(wayId);
        sb.append(", status=").append(status);
        sb.append(", defectStatus=").append(defectStatus);
        sb.append(", statusTime=").append(statusTime);
        sb.append("]");
        return sb.toString();
    }
}